package com.chen.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.common.Result;
import com.chen.mapper.UserMapper;
import com.chen.pojo.User;
import com.chen.pojo.bean.UserInfo;
import com.chen.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Override
    public Result info( String token ,Long timestamp,Long originalKeepAlive) {
        UserInfo info=new UserInfo();
       info.setAvatar("https://himg.bdimg.com/sys/portrait/item/public.1.cc186001.v5cWpNYBr9dC7t716NhTdw.jpg");
       info.setIntroduction("我是新兵连小组成员");
        info.setNickName("陈超");
        User user=new User();

        info.setRoles(new String[]{"admin"});


        return  Result.success(info);

    }

    @Override
    public Result logout(String token, Long originalKeepAlive) {
      return  Result.success();
    }
}
